import os

prefix="lesson_"
start_counter=0
end_counter=18
for i in range(start_counter,end_counter+1):
    floder_name=prefix+str(i)
    try:
        os.makedirs(floder_name,exist_ok=True)
        print(f"目录'{floder_name}'已创建")
    except OSError as e:
        print(f"创建'{floder_name}'时出错：{e}")


specific_floders=["lesson_32","lesson_33","lesson_42","lesson_44"]
for floder_name in specific_floders:
    try:
        os.makedirs(floder_name)
        print(f"dir{floder_name} created successfully")
    except OSError as e:
        print(f"failed to create dir {floder_name}")
